<template>
  <el-checkbox-group
    :model-value="modelValue"
    @update:modelValue="emit('update:modelValue', $event)"
    v-bind="$attrs"
  >
    <el-checkbox
      v-for="option in options"
      :key="option.value"
      :label="option.value"
      :disabled="option.disabled"
    >
      {{ option.label }}
    </el-checkbox>
  </el-checkbox-group>
</template>

<script setup>
defineOptions({
  name: 'AxiomCheckboxGroup'
});

defineProps({
  modelValue: {
    type: Array,
    default: () => [],
  },
  options: {
    type: Array,
    required: true,
    default: () => [],
  },
});

const emit = defineEmits(['update:modelValue']);
</script> 